package com.elysium.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UpdatePasswordDto {

    @NotEmpty(message = "密码不能为空！")
    private String oldPassword;
    @NotEmpty(message = "密码不能为空！")
    private String newPassword;
    private String username;
    private Integer type;

}
